<!doctype html>
<html>
<head>
    <title>会员资料编辑</title>
    <?php $this->load->module('admin/index/page_header');?>
    <!--引入CSS-->
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.css">
    <!--引入JS-->
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.js"></script>

</head>
<body>
<div class="wrap">
    <div id="home_toptip"></div>
    <div class="table_full">
    <form class="formvalidate" action="<?php echo $form_url;?>" method="post">
    <div class="h_a">用户信息</div>
    <div class="table_full">
        <table width="100%">
            <col class="th" />
            <col/>
            <thead>
            <tr>
                <th>UID</th>
                <td><?php echo $user_id ;?></td>
            </tr>
            </thead>
            <tr>
                <th>用户名</th>
                <td><?php echo $username ;?></td>
            </tr>
            <tr>
                <th>头像</th>

                <td class="rowform">
                    <li><img width="100" height="100" id="avatar_box"  src="<?php echo URLPIC.$avatar ;?>"><span><span></li>

                </td>

            </tr>
            <tr>
                <th>修改头像</th>

                <td class="rowform">

                    <li><span id="filePicker">修改头像</span></li>
                </td>

            </tr>
            <tr>
                <th>新密码</th>
                <td><input name="Form[password]" id="password" type="text" class="input length_5" validate="{rangelength:[6,20]}"></td>
            </tr>
            <tr>
                <th>确认密码</th>
                <td><input name="repassword" type="text" class="input length_5" validate="{rangelength:[6,20],equalTo:'#password'}"></td>
            </tr>
            <tr>
                <th>注册时间</th>
                <td><?php echo $reg_date ;?></td>
            </tr>
            <tr>
                <th>注册IP</th>
                <td><?php echo $reg_ip ;?></td>
            </tr>
            <tr>
                <th>最后登录时间</th>
                <td><?php echo $login_date ;?></td>
            </tr>

        </table>
    </div>
    <div class="h_a">基本资料</div>
    <div class="table_full">
        <table width="100%">
            <col class="th" />
            <col/>
            <tr>
                <th>真实姓名</th>
                <td><input name="Expand[realname]" type="text" class="input input_hd length_5" value="<?php echo $realname; ?>"></td>
            </tr>
            <tr>
                <th>公司名称</th>
                <td><input name="Expand[company]" type="text" class="input input_hd length_5" value="<?php echo $company; ?>"></td>
            </tr>
            <tr>
                <th>性别</th>
                <td>
                    <select name="Expand[gender]" class="select_5">
                        <option value="2" <?php if($gender=='2'):?>selected<?php endif;?>>女</option>
                        <option value="1" <?php if($gender=='1'):?>selected<?php endif;?>>男</option>
                        <lect>
                </td>
            </tr>

            <tr>
                <th>现居住地</th>
                <td class="J_region_set">
				<span>
				<span class="J_province"></span> <span class="J_city"></span> <span class="J_district"></span></span>
                    <a data-pid="" data-cid="" data-did="" href="" class="J_region_change">更改</a>
                    <input class="J_areaid" type="hidden" name="location" value="0" />
                </td>
            </tr>
            <tr>
                <th>家乡</th>
                <td class="J_region_set">
				<span>
				<span class="J_province"></span> <span class="J_city"></span> <span class="J_district"></span></span>
                    <a data-pid="" data-cid="" data-did="" href="" class="J_region_change">更改</a>
                    <input class="J_areaid" type="hidden" name="hometown" value="0" />
                </td>
            </tr>
            <tr>
                <th>个人主页</th>
                <td>
                    <input name="homepage" type="text" class="input length_5" value="">
                </td>
            </tr>
            <tr>
                <th>自我简介</th>
                <td>
                    <textarea class="length_5" name="profile"></textarea>
                </td>
            </tr>
        </table>
    </div>
    <div class="h_a">交易信息</div>
    <div class="table_full">
        <table width="100%">
            <col class="th" />
            <col/>
            <tr>
                <th>支付宝</th>
                <td>
                    <input name="alipay" type="text" class="input length_5" value="">
                </td>
            </tr>
            <tr>
                <th>手机号码</th>
                <td>
                    <input name="Form[mobile]" type="text" class="input length_5" value="<?php echo $mobile;?>" validate="{isMobile:true,remote:'<?php echo $check_mobile_uri;?>'}">
                </td>
            </tr>
            <tr>
                <th>固定电话</th>
                <td>
                    <input name="telphone" type="text" class="input length_5" value="">
                </td>
            </tr>
            <tr>
                <th>邮寄地址</th>
                <td>
                    <input name="address" type="text" class="input length_5" value="">
                </td>
            </tr>
            <tr>
                <th>邮编</th>
                <td>
                    <input name="zipcode" type="text" class="input length_5" value="">
                </td>
            </tr>
        </table>
    </div>
    <div class="h_a">联系信息</div>
    <div class="table_full">
        <table width="100%">
            <col class="th" />
            <col/>
            <tr>
                <th>电子邮箱</th>
                <td>
                    <input name="Form[email]" type="text" class="input length_5" value="<?php echo $email ;?>" validate="{email:true,rangelength:[4,40],remote:'<?php echo $check_email_uri;?>'}">
                </td>
            </tr>
            <tr>
                <th>阿里旺旺</th>
                <td>
                    <input name="aliww" type="text" class="input length_5" value="">
                </td>
            </tr>
            <tr>
                <th>QQ</th>
                <td>
                    <input name="qq" type="text" class="input length_5" value="">
                </td>
            </tr>
            <tr>
                <th>MSN</th>
                <td>
                    <input name="msn" type="email" class="input length_5" value="">
                </td>
            </tr>
        </table>
    </div>


    <div class="btn_wrap">
        <div class="btn_wrap_pd">
            <button type="submit" class="btn btn_submit J_ajax_submit_btn">提交<tton>
        </div>
    </div>
    <input type="hidden" name="user_id" value="<?php echo $user_id ;?>"/>
    </form>



    </div>
</div>
    <script type="text/javascript">
        upload_image_2("<?php echo site_url('member/admin/upload_avatar/?uid='.$user_id);?>",'filePicker','face_image','avatar_box');
    </script>
</body>
</html>